package com.zhuss.controller.team;

import com.zhuss.bean.bo.team.information.CreateInfoBo;
import com.zhuss.bean.bo.team.information.DeleteInfoBo;
import com.zhuss.bean.bo.team.information.UpdateInfoBo;
import com.zhuss.bean.bo.team.information.ViewInfoSonBo;
import com.zhuss.common.BaseController;
import com.zhuss.common.OperateService;
import com.zhuss.exception.WpsException;
import com.zhuss.team.informationSon.InformationSonOperateServiceExt;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.*;

/**
 * @Author: zhushanshuo
 * @Date: 2020/3/3 15:18
 */
@RestController
@RequestMapping("/informationSon")
public class InformationSonOperateController extends BaseController {

    @Autowired
    @Qualifier("informationSonOperateService")
    private OperateService<Void, Object> informationSonOperateService;

    @Autowired
    @Qualifier("informationSonOperateServiceExt")
    private InformationSonOperateServiceExt informationSonOperateServiceExt;

    /**
     * 查看待阅信息
     * @param bo
     * @throws WpsException
     */
    @ResponseBody
    @PostMapping("/infoSonView")
    public void infoSonView(@RequestBody ViewInfoSonBo bo) throws WpsException {
        informationSonOperateServiceExt.infoSonView(bo);
    }
}
